package com.demo.designmode.visitor;

/**
 * @Author: jxm
 * @Description: 具体访问者角色类
 * @Date: 2023-12-12 15:32
 * @Version: 1.0
 */
public class Owner implements Person{

    @Override
    public void feed(Cat cat) {
        System.out.println("主人喂食猫");
    }

    @Override
    public void feed(Dog dog) {
        System.out.println("主人喂食狗");
    }
}
